package com.example.sys.solicitation.vo;

import com.example.core.vo.BaseAuthVo;
import com.example.sys.attachment.po.ISysAttachment;
import com.example.sys.attachment.po.SysAttachment;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SysSolicitationVo extends BaseAuthVo<SysSolicitationVo> implements ISysAttachment {

    private String code;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String context;

    @ApiModelProperty(value = "包含附件")
    private transient List<SysAttachment> fileList = new ArrayList<>();
}
